package everyday;

import org.junit.jupiter.api.Test;

public class T2437 {
    public int countTime(String time) {
        return (time.charAt(0) == '?' && time.charAt(1) == '?'?24:(time.charAt(0) == '?' ? time.charAt(1) > '3' ? 2 : 3 : 1) * (time.charAt(1) == '?' ? time.charAt(0) == '2' ? 4 : 10 : 1))*(time.charAt(3) == '?' ? 6 : 1)*(time.charAt(4) == '?' ? 10 : 1);
    }
}
